<?php if (!defined('THINK_PATH')) exit();?><!--<meta http-equiv="refresh" content="1"/>-->
<link href="/Public/Admin/css/same.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<link href="/Public/css/bootstrap.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/layer/layer.js" type="text/javascript"></script>
<script src="/Public/js/bootstrap.js" type="text/javascript"></script>
<script src="/Public/Admin/js/borrowInfo.js" type="text/javascript"></script>
<div class="a-main-left-content">
    <div class="a_con_title">
        <h4>借阅订单管理</h4>
    </div>
    <div class="a_title_tip">
        <img class="a_record_icon" src="/Public/img/record_01.jpg"/>
        <span class="a_record_news">请及时确定借阅订单。</span>
    </div>

    <div class="read_type_box">
        <div class="trade_box">
            <?php if(is_array($_getNoIfBackIfo)): $i = 0; $__LIST__ = $_getNoIfBackIfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="borrow_if_box">
                    <div class="borrow_if_span">
                        <span>到期时间：</span>
                        <span><?php echo (date('Y-m-d H:i:s',$vo['borrow_backtime'])); ?></span>
                    </div>
                    <div class="borrow_if_info">
                        <?php if(is_array($_getAllUserInfo)): $i = 0; $__LIST__ = $_getAllUserInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fo): $mod = ($i % 2 );++$i; if($vo['u_id'] == $fo['u_id']): if(is_array($_getAllReadType)): $i = 0; $__LIST__ = $_getAllReadType;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$zo): $mod = ($i % 2 );++$i; if($fo['u_type_id'] == $zo['u_type_id']): ?><span><?php echo ($zo['u_type_name']); ?>：</span><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                <span><?php echo ($fo['real_name']); ?></span>
                                <span>身份证号码：</span>
                                <span><?php echo ($fo['real_number']); ?></span><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                    <div class="borrow_if_info" id="borrow_top">
                        <?php if(is_array($_getAllBookInfo)): $i = 0; $__LIST__ = $_getAllBookInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$so): $mod = ($i % 2 );++$i; if($vo['book_id'] == $so['book_id']): ?><span>条形码：</span>
                                <span><?php echo ($so['book_barcode']); ?></span>
                                <span>《<?php echo ($so['book_name']); ?>》</span><?php endif; endforeach; endif; else: echo "" ;endif; ?>
                        <span>借阅状态：</span>
                        <?php if($vo['borrow_ifback'] == 2): ?><span style="color: red">未归还</span><?php endif; ?>
                        <?php if($vo['borrow_ifback'] == 3): ?><span style="color: #009f95">归还请求</span><?php endif; ?>
                    </div>
                    <div class="borrow_input">
                        <div class="borrow_winth">
                            <?php if($vo['borrow_ifback'] == 2): ?><input type="button" class="borrow_right go" go-id="<?php echo ($vo['borrow_id']); ?>" book-id="<?php echo ($vo['book_id']); ?>" value="完成归还"><?php endif; ?>
                            <?php if($vo['borrow_ifback'] == 3): ?><input type="button" class="go" go-id="<?php echo ($vo['borrow_id']); ?>" value="完成归还" readonly="">
                                <input type="button" id="borrow_color" class="out" out-id="<?php echo ($vo['borrow_id']); ?>" value="驳回请求" readonly=""><?php endif; ?>
                            <input type="hidden" value="<?php echo U('Admin/InfoManage/goBookIfBack');?>" id="go-url">
                            <input type="hidden" value="<?php echo U('Admin/InfoManage/outBookIfBack');?>" id="out-url">
                        </div>
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
</div>